package io.renren.modules.draw_money_log.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.renren.common.utils.CommonUtils;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 佣金转入余额
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-09-19 18:56:40
 */
@Data
@TableName("v9_draw_money_log")
public class V9DrawMoneyLogEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 *
	 */
	@TableId
	private Integer dmlId;
	/**
	 * 用户ID
	 */
	private Integer userId;
	/**
	 * 会员码
	 */
	private String specialId;
	/**
	 * 用户名
	 */
	private String username;
	/**
	 * 账户余额
	 */
	private BigDecimal amount;
	/**
	 * 我的佣金
	 */
	private BigDecimal brokerage;
	/**
	 * 订单号
	 */
	private String dmlOrdersn;
	/**
	 * 详情
	 */
	private String dmlLog;
	/**
	 * 转入金额
	 */
	private BigDecimal dmlMoney;
	/**
	 *
	 */
	private String dmlType;
	/**
	 * 审核状态
	 */
	private Integer dmlStatus;
	/**
	 * 交易单号
	 */
	private String dmlTradesn;
	/**
	 * 申请日期
	 */
	private Integer dmlAddtime;

	private transient String dmlAddtimeStr;

	/**
	 * 审批日期
	 */
	private Integer dmlAudittime;

	private transient String dmlAudittimeStr;

	public String getDmlAddtimeStr() {
		if(dmlAddtime==null){
			return "";
		}else {

			return dmlAddtime==null ? null : CommonUtils.timeStampToTime(CommonUtils.timeStampPlus3(dmlAddtime));
		}
	}

	public String getDmlAudittimeStr() {
		if(dmlAudittime==null){
			return "";
		}else {

			return dmlAudittime==null ? null : CommonUtils.timeStampToTime(CommonUtils.timeStampPlus3(dmlAudittime));
		}
	}

	/**
	 * ip
	 */
	private String ip;
	/**
	 * 审批人
	 */
	private String executant;

}
